package com.crm.mapper.system;

import com.crm.dto.LogPagePramDto;
import com.crm.pojo.OperateLog;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LogMapper {

    void add(OperateLog log);

    /**
     * 分页查询
     *
     * @param dto
     * @return
     */
    List<OperateLog> queryPage(LogPagePramDto dto);

    @Delete("delete from sys_log where oper_id=#{operId}")
    void delete(Integer operId);
}
